package com.yphone.ui.main;

import android.content.Context;
import android.support.v4.app.FragmentActivity;
import android.view.View;

import com.yphone.base.BasicFragment;
import com.yphone.base.IBaseView;


public interface MainActivityContract {

    interface IPrestenter extends com.yphone.base.IBasePresenter {
        public static final String EXTEND_FRAGMENT_TAG = "EXTEND_FRAGMENT_TAG";
        public static final String MANAGE_FRAGMENT_TAG = "MANAGE_FRAGMENT_TAG";
        public static final String MY_FRAGMENT_TAG = "MY_FRAGMENT_TAG";
        public static final int YSJ_FRAGMENT_INDEX = 0;
        public static final String YSJ_FRAGMENT_TAG = "YSJ_FRAGMENT_TAG";

        void destory();

        BasicFragment getFragment(int i);

        void onTabSelected(int i);

        void onTabUnselected(int i);

        void requestInit();

        void updateDeviceRemake(String d_token,String remake);

//        void pushFile(String str, MWYSdkBean mWYSdkBean);
    }

    interface IView extends IBaseView<IPrestenter> {
        FragmentActivity getCurrentActivity();

        Context getCurrentContext();

        void showToast(String str);

//        void showVersionUpdateDialog(UpdateInfo updateInfo);
    }
}